﻿@{

    PageMeta pm = (PageMeta)ViewBag.PageMeta;
    ViewBag.Title = pm != null ? pm.Title : SettingsManager.Contact.CompanyName;
}

@section header{
    @if (pm != null)
    {
        <meta name="description" content="@pm.Description" />
        <meta name="keywords" content="@pm.Keyword" />
    }
}

@Html.Partial("Header")
<section class="searchbox">
    <div class="box">
        <div class="logo">
            <img src="~/Themes/PingAn/Content/img/logo.png" alt="@SettingsManager.Site.SiteName" />
        </div>
        <form class="form" action="@Url.Action("Search","Article")" method="get">
            <div class="control-group">
                <input name="keyword" type="text" class="form-control" placeholder="搜索关键词" /><button type="submit"><i class="iconfont icon-search"></i></button>
            </div>
        </form>
    </div>
</section>
<section class="section2 container">
    <div class="row">
        <div class="col-md-8 col-lg-9">
            @Html.Action("HomeNews", "Article", new { seoName = "news", count = 8 })
            <hr class="nomt" />
            <p class="text-center">
                <a href="/article" class="btn btn-b-orange btn-lg">更多文章</a>
            </p>

        </div>
        <div class="col-md-4 col-lg-3">
            <aside class="chart">
                <h3 class="title">动态数据</h3>
                <img src="~/Themes/PingAn/Content/img/chart.png" alt="动态数据" />
            </aside>
            @Html.Action("HotNews","Article", new { count = 8 })
            <p class="text-center">
                <a href="/article" class="btn btn-b-orange">更多文章</a>
            </p>

        </div>
    </div>
   
</section>
<section class="section3">
    @Html.Action("SingleAd", "Ad", new { code = "A1002" })
</section>



@section footer{

    <script>

        $(document).ready(function () {
          
        });
    </script>


}
